package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.PageRequestDTO;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface AdSensitiveService extends IService<AdSensitive> {
    /*
    * 分页查询
    * */
    PageResponseResult list(SensitiveDTO sensitiveDTO);
    /*
     *新增
     * */
    ResponseResult insert(AdSensitive adSensitive);

    /*
    * update
    * */
    ResponseResult update(AdSensitive sensitive);

    /*
     * delete
     * */
    ResponseResult delete(Integer id);

    /**
     * 查询敏感词内容列表
     * @return
     */
    public ResponseResult<List<String>> selectAllSensitives();
}
